T
User-defined dialog result type. In most cases System.Object.ToString is used as the button content.
Cocktail Help Reference
ShowDialogAsync<T>(Object,IEnumerable<T>,String) Method
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > DialogManager Class > ShowDialogAsync Method : ShowDialogAsync<T>(Object,IEnumerable<T>,String) Method



content
The custom view model to host in the dialog.
dialogButtons
A value that indicates the button or buttons to display. See DialogButtons for predefined button sets.
title
Optional title of the dialog.

Glossary Item Box

Displays a modal dialog with a custom view model.

Syntax

Visual Basic (Declaration) 
Public Overloads Function ShowDialogAsync(Of T)( _
   ByVal content As Object, _
   ByVal dialogButtons As IEnumerable(Of T), _
   Optional ByVal title As String _
) As Task(Of T)
Visual Basic (Usage)Copy Code
Dim instance As DialogManager
Dim content As Object
Dim dialogButtons As IEnumerable(Of T)
Dim title As String
Dim value As Task(Of T)
 
value = instance.ShowDialogAsync(Of T)(content, dialogButtons, title)
C# 
public Task<T> ShowDialogAsync<T>( 
   object content,
   IEnumerable<T> dialogButtons,
   string title
)
C++/CLI 
public:
Task<T^>^ ShowDialogAsyncgeneric<typename T>
( 
   Object^ content,
   IEnumerable<T^>^ dialogButtons,
   String^ title
) 

Parameters

content
The custom view model to host in the dialog.
dialogButtons
A value that indicates the button or buttons to display. See DialogButtons for predefined button sets.
title
Optional title of the dialog.

Type Parameters

T
User-defined dialog result type. In most cases System.Object.ToString is used as the button content.

Return Value

The dialog result.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.